package com.yourcompany.service.strategy;

import com.wechat.pay.contrib.apache.httpclient.WechatPayHttpClientBuilder;
import com.yourcompany.api.strategy.PaymentStrategy;
import com.yourcompany.api.vo.PaymentVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 微信支付策略实现类
 */

@Slf4j
@Component
public class WxPayStrategy implements PaymentStrategy {

    // 获取支付方式
    @Override
    public String getPaymentMethod() {
        return "wxpay";
    }

    // 创建支付订单
    @Override
    public PaymentVO createPayment(String orderNo, String totalAmount) {
        // 实现微信支付逻辑
        return null;
    }

    // 查询支付订单
    @Override
    public boolean queryPayment(String orderNo) {
        // 实现微信查询逻辑
        return false;
    }

    // 关闭支付订单
    @Override
    public boolean closePayment(String orderNo) {
        // 实现微信关单逻辑
        return false;
    }

    // 退款
    @Override
    public boolean refund(String orderNo, String refundAmount) {
        // 实现微信退款逻辑
        return false;
    }

    @Override
    public PaymentVO pay(String orderNo, String totalAmount) {
        return null;
    }
} 